package cn.u313.service;

import cn.u313.entry.ChengYuEntry;
import cn.u313.repository.ChengYuRepository;
import me.kuku.utils.MyUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ChengYuService {
    @Autowired
    ChengYuRepository chengYuRepository;
    public String save(String a0,String a1){
        ChengYuEntry chengYuEntry = new ChengYuEntry();
        chengYuEntry.setChs(a0);
        chengYuEntry.setE(a1);
        chengYuEntry.setId(MyUtils.randomStr(5));
        chengYuRepository.save(chengYuEntry);
        return "";
    }
}
